package com.cooge.collection.pojo;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CollectionUrl entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "collection_url", catalog = "sharevideo")
public class CollectionUrl implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7190307013900742926L;
	private Integer id;
	private String name;
	private String url;
	private Integer endid;
	private Integer max;
	private String indexUrl;
	private String type;
	
	private Integer startid;
	

	// Constructors

	/** default constructor */
	public CollectionUrl() {
	}

	/** full constructor */
	public CollectionUrl(String name, String url, Integer endid, Integer max) {
		this.name = name;
		this.url = url;
		this.endid = endid;
		this.max = max;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "url")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "endid")
	public Integer getEndid() {
		return this.endid;
	}

	public void setEndid(Integer endid) {
		this.endid = endid;
	}

	@Column(name = "max")
	public Integer getMax() {
		return this.max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.name;
	}
	@Column(name = "indexUrl")
	public String getIndexUrl() {
		return indexUrl;
	}

	public void setIndexUrl(String indexUrl) {
		this.indexUrl = indexUrl;
	}
	@Column(name = "type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "startid")
	public Integer getStartid() {
		return startid;
	}

	public void setStartid(Integer startid) {
		this.startid = startid;
	}

}